<template>
  <div id="header">
    <div class="container">
      <div class="top">
        <div class="left">
          <img src="../assets/images/text.png" alt="" />
        </div>
        <div class="right">超清无水印动静态壁纸</div>
      </div>
      <div class="bottom">
        <div
          @click="mytog('pageComputer', 0)"
          :class="['kehuduan', index == 0 ? 'active' : '']"
        >
          电脑客户端
        </div>
        <div
          @click="mytog('pagePhone', 1)"
          :class="['kehuduan', index == 1 ? 'active' : '']"
        >
          手机客户端
        </div>
      </div>
      <div class="content">
        <component :is="cn" class="co-left"></component>
      </div>
      <div class="button">
        <div class="top">
          <div class="icon iconfont icon-windows"></div>
          <a
            href="https://softdl.www.duba.net/softmgr/package/infoflow/package/kdesk_33_1.exe"
            class="download"
            >点击下载</a
          >
        </div>
        <div class="bottom">系统要求：win7及以上系统</div>
      </div>
      <div class="select">
        <ul>
          <li
            v-for="(item, index) in tabs"
            :class="{ active: index == num }"
            @click="tab(index)"
          >
            {{ item }}
          </li>
        </ul>
      </div>
      <div class="tip"><router-view></router-view>      </div>
      <div class="more">
        <a
          href="https://softdl.www.duba.net/softmgr/package/infoflow/package/kdesk_33_1.exe"
          class="left"
          >更多超清壁纸</a
        >
        <div class="right iconfont icon-youjiantou"></div>
      </div>
      <div class="text">
        <h1>特效渲染引擎，释放无限创意</h1>
        <p>
          内置游戏渲染引擎，真实还原雨雪光特效和各种粒子效果，让动态壁纸效果栩栩如真
        </p>
        <p>每张壁纸内置专属背景音和鼠标效果，为你打造桌面壁纸的绝美盛宴</p>
        <ul>
          <li>
            <img src="../assets/images/more1.jpg" alt="" />
          </li>
          <li>
            <img src="../assets/images/more2.jpg" alt="" />
          </li>
          <li>
            <img src="../assets/images/more3.jpg" alt="" />
          </li>
        </ul>
        <div class="btn">
          <button>立即体验</button>
        </div>
      </div>
      <div class="text-bottom">
        <h1 class="text-top">解放臃肿桌面，还你无限清爽</h1>
        <p class="text-middle">
          桌面整理助手：智能识别文件，一键分类整理，个性设计排版，壁纸自动切换
        </p>
        <div class="text-box">
          <div class="box-left">
            <video
              src="../assets/video/6.mp4"
              autoplay="autoplay"
              loop="loop"
              muted
            ></video>
          </div>
          <div class="box-right">
            <ul>
              <li class="box-tubiao">
                <img src="../assets/images/1.svg" alt="" />
                <div class="text-top1">
                  <h2 class="zhuomian">一键整理桌面</h2>
                  <div class="xiaozi">桌面从此清爽如新</div>
                </div>
              </li>
              <li class="box-tubiao">
                <img src="../assets/images/2.svg" alt="" />
                <div class="text-top1">
                  <h2 class="zhuomian">一键整理桌面</h2>
                  <div class="xiaozi">桌面从此清爽如新</div>
                </div>
              </li>
              <li class="box-tubiao">
                <img src="../assets/images/3.svg" alt="" />
                <h2 class="text-top1">弹窗拦截/任务栏美化</h2>
              </li>
            </ul>
            <div class="button-box">
              <button>立即体验</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import pageComputer from "@/pages/page-computer.vue";
import pagePhone from "@/pages/page-phone.vue";
import pageJingxuan from "../pages/page-jingxuan.vue";
import pageFengjing from "../pages/page-jingxuan.vue";
export default {
  name: "firstPage",
  components: {
    pageComputer,
    pagePhone,
    pageJingxuan,
    pageFengjing,
  },
  data() {
    return {
      cn: "pageComputer",
      num: 0,
      comName: "",
      index: 0,
      tabs: [
        "精选",
        "风景",
        "动漫",
        "明星",
        "美女",
        "科幻",
        "游戏",
        "汽车",
        "体育",
      ],
      isShow: "false",
    };
  },
  methods: {
    mytog(cn, index) {
      (this.cn = cn), (this.index = index);
    },
    tab(data) {
      this.num = data;
      if (data == 0) {
        this.$router.push({
          path: "/jingxuan",
        });
      }
      if (data == 1) {
        this.$router.push({
          path: "/fengjing",
        });
      }
      if (data == 2) {
        this.$router.push({
          path: "/dongman",
        });
      }
      if (data == 3) {
        this.$router.push({
          path: "/mingxing",
        });
      }
      if (data == 4) {
        this.$router.push({
          path: "/meinv",
        });
      }
      if (data == 5) {
        this.$router.push({
          path: "/kehuan",
        });
      }
      if (data == 6) {
        this.$router.push({
          path: "/youxi",
        });
      }
      if (data == 7) {
        this.$router.push({
          path: "/qiche",
        });
      }
      if (data == 8) {
        this.$router.push({
          path: "/tiyu",
        });
      }
    },
  },
};
</script>
<style lang="scss" scoped>
#header {
  width: 1200px;
  margin: 0 auto;
  margin-top: 50px;
  padding-bottom: 50px;
  .container {
    width: 1200px;
    margin: 0 auto;
    .top {
      display: flex;
      margin-left: 298px;
      .left {
        img {
          width: 305px;
          height: 83px;
        }
      }
      .right {
        line-height: 83px;
        font-size: 36px;
      }
    }
    .bottom {
      display: flex;
      justify-content: center;
      a {
        text-decoration: none;
      }
      .kehuduan {
        margin: 10px 20px;
        font-size: 18px;
        font-weight: bold;
      }
      .active {
        color: #febc00;
      }
    }
    .button {
      .top {
        width: 200px;
        height: 60px;
        display: flex;
        margin-left: 500px;
        border: 1px solid #febc00;
        padding-left: 41px;
        margin-top: 30px;
        border-radius: 5px;
        background-color: #febc00;
        line-height: 60px;
        .icon {
          font-size: 40px;
          color: #ffffff;
        }
        .download {
          font-size: 30px;
          color: #ffffff;
          user-select: none;
          text-decoration: none;
        }
      }
      .bottom {
        margin-top: 10px;
        font-size: 14px;
        color: #666666;
      }
      .top:hover {
        background-color: #ff733d;
      }
    }
    .select {
      margin-top: 30px;
      margin-bottom: 30px;
      ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        margin-left: 200px;
        li {
          cursor: pointer;
          margin-left: 30px;
          font-size: 14px;
          margin-right: 30px;
          padding-bottom: 5px;
        }
        .active {
          color: #febc00;
          border-bottom: 3px solid #febc00;
        }
      }
    }
    .tip {
      width: 1200px;
      margin: 0 auto;
    }
    .more {
      width: 150px;
      height: 50px;
      display: flex;
      border: 1px solid #fceab5;
      margin: 0 auto;
      text-align: center;
      line-height: 50px;
      padding-left: 36px;
      background-color: #fceab5;
      border-radius: 5px;
      margin-bottom: 50px;
      .left {
        text-decoration: none;
        user-select: none;
        color: black;
        font-weight: bold;
      }
      .right {
        margin-top: 16px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        background-color: #f4bb0b;
        text-align: center;
        margin-left: 10px;
      }
    }
    .text {
      background-color: #fff8e7;
      padding-top: 50px;
      h1 {
        text-align: center;
      }
      p {
        text-align: center;
        font-size: 20px;
      }
      ul {
        list-style: none;
        display: flex;
        li {
          margin-left: -5px;
        }
      }
    }
    .btn {
      margin-left: 450px;
      button {
        margin-bottom: 50px;
        margin-top: 100px;
        background-color: #f4bb0b;
        border-color: #f4bb0b;
        font-weight: bold;
        width: 300px;
        height: 70px;
        border-radius: 10px;
        font-size: 20px;
      }
    }
    .text-bottom {
      .text-top {
        text-align: center;
      }
      .text-middle {
        text-align: center;
        font-size: 20px;
      }
      .text-box {
        display: flex;
        .box-left {
          margin-right: 50px;
          margin-left: 6px;
        }
        .box-right {
          margin-left: 10px;
          ul {
            margin: 0;
            padding: 0;
            list-style: none;
            li {
              margin-top: 30px;
              display: flex;
              img {
                width: 60px;
                height: 60px;
                margin-right: 10px;
              }
              .text-top1 {
                .zhuomian {
                  margin: 0;
                  padding: 0;
                }
              }
            }
            li:hover {
              color: #f4bb0b;
              img {
                border: 1px solid #f4bb0b;
                border-radius: 50%;
              }
            }
          }
          .button-box {
            margin-left: 50px;
            margin-top: 50px;
            button {
              width: 200px;
              height: 60px;
              background-color: #febc00;
              border: 1px solid #febc00;
              border-radius: 8px;
              font-size: 18px;
            }
          }
        }
      }
    }
  }
}
</style>